package com.d0304;

public class LoL {
    static class hero{
        int exp=100;
        int Lv=8;
        int strength=500;
    }
    static class Monster{
        int Life;
        int lv=2;
        public int Life(int Lv){
            Life=Lv*1000;
            return Life;
        }
        public int hit(hero h,Monster m)
        {

            int a=m.Life(m.lv)-h.strength;
            return a;

        }
        public static void main(String[] args) {
            hero h = new hero();
            Monster m= new Monster();
            LoL l = new LoL();
            int a = m.hit(h,m);

            System.out.println(a);
        }

    }
}
